package com.lbd;

import org.springframework.amqp.core.Queue;
import org.springframework.amqp.core.TopicExchange;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * Demo class
 *
 * @author zzl
 * @date ${date}
 */
@Configuration
public class RabbitConfig {

    @Bean
    TopicExchange exchange() {
        return new TopicExchange("dynamic_code-exchange");
    }
    @Bean
    public Queue Queue() {
        return new Queue("dynamic_code");
    }
}
